﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using IDAL;
using Factory;

namespace BLL
{
    public class B_CustomerCom : ICustomerCom
    {
        public void Add(CustomerCom obj)
        {
            CreateFactory.GetCustomerCom().Add(obj);
        }

        public void Delete(int id)
        {
            CreateFactory.GetCustomerCom().Delete(id);
        }

        public CustomerCom FindById(int id)
        {
            return CreateFactory.GetCustomerCom().FindById(id);
        }

        public List<CustomerCom> GetAll()
        {
            return CreateFactory.GetCustomerCom().GetAll();
        }

        public void Update(int id, CustomerCom obj)
        {
            CreateFactory.GetCustomerCom().Update(id, obj);
        }
    }
}
